import { isWx } from 'kuan-utils/lib/validate'
// import { isAliPay } from '../validate'
import * as wxLogin from './wxLogin'
import { toast as Toast } from 'kuan-request'

export function login(backUrl) {
  if (isWx) {
    wxLogin.login(backUrl)
  } else {
    Toast('请在微信中打开')
  }
}

export function login401() {
  if (isWx) {
    wxLogin.login401()
  } else {
    Toast('请在微信中打开')
  }
}
